﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AcceleratorTests
{
    public class DataLogEntry
    {
       public double factor;

       public TimeSpan CPUtime;
       public TimeSpan GPUtime;

       public List<ResultEntry> resultList;

       public int timesRun;
       public int size;
       public int graphSize;

        public DataLogEntry(TimeSpan CPUtime, TimeSpan GPUtime, int timesRun, int graphSize, int size, List<ResultEntry> resultList)
        {
            this.CPUtime = new TimeSpan(CPUtime.Ticks / timesRun);
            this.GPUtime = new TimeSpan(GPUtime.Ticks / timesRun);

            this.size = size;
           
            this.timesRun = timesRun;
            this.graphSize = graphSize;

            factor = CPUtime.TotalMilliseconds / GPUtime.TotalMilliseconds;
           
            this.resultList = resultList;
       }
    }
}
